<?php
namespace Home\Controller;

class ShopCartController extends CartController {
	
	protected $cart = null;
	
	public function _init() {
		layout('shop');
		$this->setModelName("PartnerProduct");
		$this->setModelControllerName("Shop");
		$this->cart = $this->getCart();
	}
	
	// 获得购物车
	protected function getCart() {
		return \Utuo\PartnerCart::getCart($this->pid, $this->cid);
	}
	
}